package com.shqcjd.siemensglass.utils;

import android.content.Context;
import android.provider.Settings;

/**
 * Created by sy on 2018/6/9.
 */

public class Utils {
    public static String getTime(){

        long time= System.currentTimeMillis()/1000;//获取系统时间的10位的时间戳

        String str= String.valueOf(time);

        return str;

    }

    //获取androidId
    public static String getAndroidId(Context context) {
        return Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
    }
}
